﻿using PMS.Core.Configuration;

namespace PMS.Data.Entities.Settings
{
    /// <summary>
    /// Captcha settings(图形验证码)
    /// </summary>
    public class CaptchaSettings : ISettings
    {
        /// <summary>
        /// Gets or sets whether Captcha Enabled
        /// </summary>
        public bool Enabled { get; set; }

        /// <summary>
        /// 验证允许使用的字母数字
        /// </summary>
        public string DisplayLetters { get; set; }

        /// <summary>
        /// 图形验证码显示字符字数
        /// </summary>
        public int DisplayLetterLength { get; set; }

        /// <summary>
        /// 图形验证码生成图片格式 bmp/jpeg/jpg/png
        /// </summary>
        public string ImageFormat { get; set; }

        /// <summary>
        /// 单位秒，验证码有效时间
        /// </summary>
        public int ExpireTimeSeconds { get; set; }
    }

}
